package threading;

public class Demo {
    public static void main(String[] args) throws InterruptedException {
        Object obj = new Object();
        System.out.println("wait开始");
        obj.wait();
        System.out.println("wait结束");
    }
}

